import 'moment/locale/zh-cn';

import { DatePicker } from 'antd';
import locale from 'antd/es/date-picker/locale/zh_CN';
import React from 'react';

import CreateRoute from './router';

const App = () => {
  return (
    <div>
      <div
        style={{
          display: 'flex',
          justifyContent: 'center',
          alignItems: 'center',
          height: '100vh',
        }}>
        <div>
          <h1>Hello world</h1>
          <DatePicker locale={locale} />
        </div>
      </div>
      <CreateRoute />
    </div>
  );
};

export default App;
